package com.yifei.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.yifei.base.IBaseEnum;
import lombok.Getter;

/**
 * @Description: 日志中操作人类别
 * @Author: yiFei
 * @date: 2023/11/1 19:40
 */
public enum OperatorTypeEnum implements IBaseEnum<Integer> {

    OTHER(0, "其他客户端"),
    MANAGE(1, "后台"),
    WEB_H5(2, "H5"),
    MOBILE(3, "手机端");


    @Getter
    @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    private Integer value;

    @Getter
    @JsonValue //  表示对枚举序列化时返回此字段
    private String label;

    OperatorTypeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
